{assets js="i18n" css="i18n"}

<h1>{$title|translate} <a class="button list" href="languages/" title="{'Languages list'|translate}"> </a></h1>


<table class="plainlist labels">

<thead>{capture assign=tablehead}{strip}<tr>
<th width="33%">{'Tag'|translate}</th>
{foreach from=$languages item=language}<th class="language" width="33%" rel="{$language.id}">{$language.name|translate}</th>{/foreach}
<td width="80px" class="common" style="text-align:left;"><a class="button add" title="{'add'|translate} (+)"> </a></td>
</tr>{/strip}{/capture}{$tablehead}</thead>

<tbody>
{foreach from=$items key=tag item=labels name=list}
<tr id="label_{$tag}">
<th>{$tag}</th>
{foreach from=$languages item=language}
<td><span class="value" rel="{$language.id}">{$labels[$language.id].value}</span></td>
{/foreach}
<td>{strip}<div style="white-space:nowrap;">
<a class="button invis"> </a>
<a class="button edit" title="{'edit'|translate}"> </a>
<a class="button delete confirm" title="{'delete'|translate}"> </a>
</div>{/strip}</td>
</tr>
{foreachelse}
<tr>
<th>*</th>
{foreach from=$languages item=language}<td>&nbsp;</td>{/foreach}
<th><a class="button add" title="{'add'|translate} (+)"></a></th>
</tr>
{/foreach}
</tbody>

<tfoot>{$tablehead}</tfoot>

</table>
